<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>404</title>
<%
	String path = request.getContextPath();
	String loginError = request.getParameter("login_error");

	/*
	 * We store the initial referring page, we will redirect to this page once the login is successful.
	 * We may already have a value stored from a previous authorization request, replace with
	 *
	 */
	if (!"true".equals(loginError)) {
		session.setAttribute("origin", request.getHeader("referer"));
	}
	String username = request.getParameter("username");
	if (username == null) {
		username = "";
	}
%>
<link href="<%=path%>/css/admin.css" rel="stylesheet" type="text/css"
	media="screen" />

</head>
<body>

<div id="topbar">
<h1>Not Authorized</h1>
</div>
<div id="middle">

<p>This page is only accessible to logged-in users with proper
access privileges</p>

</div>
<div id="logo"><a href="http://www.magneato.org/"> <img
	src='<%=path%>/css/images/logo.png' alt="Powered by Magneato"
	border="0" /> </a></div>
</body>
</html>
